package com.zzy.chapter4.transaction.colleague;

import com.zzy.chapter4.transaction.mediator.AbstractMediator;

public class Payer extends AbstractCustomer {
    public Payer(String orderId, String customerName, AbstractMediator mediator) {
        super(orderId, customerName, mediator);
    }

    @Override
    public void messageTransfer(String orderId, String targetCustomer, String payResult) {
        super.mediator.messageTransfer(orderId, targetCustomer, this, payResult);
    }
}
